from Goldenberry.optimization.ga.GbSelectorMgr.Selectors import Elitist
 
class SelectionContext(object):
    """description of class"""
    curr_selection_str = None

    def __init__(self):
       self.curr_selection_str = Elitist()

    def select_parents(self, num_parents, population, costs):
        return self.curr_selection_str.select_parents(num_parents, population, costs) 

    def set_curr_selection_str(self, strategy):
        self.curr_selection_str = strategy

